package com.modifiertech.lineage.api;

import com.feed_the_beast.ftblib.lib.icon.Icon;
import com.modifiertech.lineage.client.gui.ftbint.GuiIconsV2;

import java.util.concurrent.ConcurrentHashMap;

/**快捷键编号存储nbt数据
 * @description: default
 * @date: 2024/8/18 21:44
 */
public class PlayerDataShortCutTag {
    //快捷键编号对应的技能存储
    private ConcurrentHashMap<String,PlayerDataSkill> shortCutRelSkill=new ConcurrentHashMap<>();

    public ConcurrentHashMap<String, PlayerDataSkill> getShortCutRelSkill() {
        return shortCutRelSkill;
    }

    public void setShortCutRelSkill(ConcurrentHashMap<String, PlayerDataSkill> shortCutRelSkill) {
        this.shortCutRelSkill = shortCutRelSkill;
    }
    public Icon getShorCutSkillIcon(int index){
        if (shortCutRelSkill.containsKey(index+""))return shortCutRelSkill.get(index+"").getIcon();
        return GuiIconsV2.skillChoiceEmpty;
    }
    public String getShorCutSkillName(int index){
        if (shortCutRelSkill.containsKey(index+"")){
            String skillName = shortCutRelSkill.get(index+"").getSkillName();
            return skillName;
        }
        return null;
    }
}
